﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Revis.VClinicNet.Core.Domain.Credentials;
using System.Web.Security;
using Revis.VClinicNet.App.Internal.Dto;

namespace Revis.VClinicNet.UI.Internal.Mvc.Infrastructure
{
    public class ClinicUser : MembershipUser
    {
        public long Id { get; private set; }

        public new string UserName { get; private set; }

        public WorkerUserRole Role { get; private set; }

        public ClinicUser(WorkerUserDto user)
        {
            Id = user.Id;
            UserName = user.FirstName + " " + user.Surname;
            Role = user.Role;
        }
    }

    public class ClinicUserViewModel
    {
        public string UserName { get; private set; }

        public ClinicUserViewModel(ClinicUser user)
        {
            UserName = user.UserName;
        }
    }
}
